#include "debug.hpp"

#include <exception>

namespace vl
{

struct assert_failure : public std::exception
{
	assert_failure(char const* str)
	: str(str)
	{
	}
	
	char const* what() throw()
	{
		return str;
	}
	
	char const* str;
};

void fail_assert(char const* str)
{
	throw assert_failure(str);
}

}
